package com.ujoku.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

/**
 * Created by Administrator on 14-10-25.
 */
public class AddressForm {

    @NotEmpty(message = "联系人不能为空!")
    private String contact;

    @NotEmpty
    @Pattern(regexp = "^1[3-8]{1}\\d{9}$", message = "请输入正确的手机号码！")
    private String phone;

    @NotEmpty
    private String shippingAddress;

    @NotEmpty
    private String province;

    @NotEmpty
    private String city;

    @NotEmpty
    private String county;

    private String zipCode;

    @NotEmpty(message = "邮政编码不能为空!")
    @Pattern(regexp = "^[0-9]{6}$", message = "请输入正确的邮政编码!")
    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }
}
